#!/bin/bash

rlogin=$1
rhost=$2

print_usage()
{
   echo "Usage: $0 <login> <remote host>"
   echo "get the production day"
}

if [ "x$rhost" == "x" ]; then
   echo "[ERROR] All arguments not available."
   print_usage
   exit 1
fi

ssh $rlogin@$rhost <<EOF
date/t
exit
EOF
